#define GPIOH_MODER    (*((volatile unsigned int*)(0x40021C00 + 0x00)))
#define GPIOH_ODR     (*((volatile unsigned int*)(0x40021C00 + 0x14)))
#define RCC_AHB1ENR  (*((volatile unsigned int*)(0x40023800 + 0x30)))


void led_init(void)
{
  //3????eLED3?1??3????a?e
	RCC_AHB1ENR |= 1<<7;
	GPIOH_MODER &=~(1<<25); 
	GPIOH_MODER |= 1<<24;
	GPIOH_ODR &=~(1<<12);
}

void PI4_ON(void)
{
	GPIOH_ODR |= (1<<12);
}
void PI4_OFF(void)
{
	GPIOH_ODR &= ~(1<<12);
}
